package com.sysolve.betterCity.model;


/**
 * @author ray
 * @hibernate.class table="account"
 */
public class Account {
	public int id;
	public String domain;
	public String userId;
	public Person owner;
	
	
	/**
	 * @return
	 * @hibernate.property column="domain"
	 */
	public String getDomain() {
		return domain;
	}
	public void setDomain(String domain) {
		this.domain = domain;
	}
	/**
	 * @return
	 * @hibernate.id generator-class="native" column="id"
	 */
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * @return
	 * @hibernate.many-to-one column="owner"
	 */
	public Person getOwner() {
		return owner;
	}
	public void setOwner(Person owner) {
		this.owner = owner;
	}
	/**
	 * @return
	 * @hibernate.property column="userId"
	 */
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public Account(String domain, String userId) {
		super();
		this.domain = domain;
		this.userId = userId;
	}
	public Account() {
		super();
	}
}
